CreditCard

public interface CreditCard

The credit card information persisted in the credit card store.

Since

7.23

Types

Link copied to clipboard
public final class Builder
A builder of CreditCard.

Properties

Link copied to clipboard
public final CardNumber number
public final CardNumber number

The card number.

Functions

Link copied to clipboard
public String cardholder()
The name of the cardholder entered by the user.
Link copied to clipboard
The expiration month of the credit card.
Link copied to clipboard
public int expirationYear()
The expiration year of the credit card.
Link copied to clipboard
public CreditCardNetwork network()
The network issuer of the card.
Link copied to clipboard
public static CreditCard.Builder newBuilder(String number, YearMonth expirationDate)
Creates a new CreditCard builder with the given required parameters.
Link copied to clipboard
public String number()
The card number.